package com.songjiakang.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Home {
	private Integer id            ;
	private String name          ;
	private String building      ;
	private Integer number        ;
	private String picture       ;
	private Integer status        ;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date listingTime  ;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date rentalTime   ;
	private Integer typeId       ;
	
	//房子的户型
	private String typeName;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBuilding() {
		return building;
	}

	public void setBuilding(String building) {
		this.building = building;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getListingTime() {
		return listingTime;
	}

	public void setListingTime(Date listingTime) {
		this.listingTime = listingTime;
	}

	public Date getRentalTime() {
		return rentalTime;
	}

	public void setRentalTime(Date rentalTime) {
		this.rentalTime = rentalTime;
	}

	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	@Override
	public String toString() {
		return "Home [id=" + id + ", name=" + name + ", building=" + building
				+ ", number=" + number + ", picture=" + picture + ", status="
				+ status + ", listingTime=" + listingTime + ", rentalTime="
				+ rentalTime + ", typeId=" + typeId + ", typeName=" + typeName
				+ "]";
	}

	public Home(Integer id, String name, String building, Integer number,
			String picture, Integer status, Date listingTime, Date rentalTime,
			Integer typeId, String typeName) {
		super();
		this.id = id;
		this.name = name;
		this.building = building;
		this.number = number;
		this.picture = picture;
		this.status = status;
		this.listingTime = listingTime;
		this.rentalTime = rentalTime;
		this.typeId = typeId;
		this.typeName = typeName;
	}

	public Home() {
		super();
		// TODO Auto-generated constructor stub
	}

	
	
}
